<!DOCTYPE html>
<html lang="zh-CN">

<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
	<link href="./css/bootstrap.min.css" rel="stylesheet">
	<link rel="stylesheet" href="css/style.css">
	<link rel="stylesheet" href="css/search.css">
	<link rel="icon" href="./img/favicon.ico" sizes="32x32">
    <title>搜索其实很简单</title>
</head>
<body>
	<canvas id="snow-flake-app" width="1920" height="392" style= "display:none;position:absolute;"></canvas>
	<div class="container1">
	  <div class="showcase">
		<a class="canvas" id="sunny" href="#" style="display:none">
		  <div class="info"><span style="font-size:24px;">晴</span></div>
		  <div class="sun">
			<div class="beam"> </div>
			<div class="beam"> </div>
			<div class="beam"> </div>
			<div class="beam"> </div>
			<div class="beam"> </div>
			<div class="beam"> </div>
			<div class="beam"> </div>
			<div class="beam"> </div>
		  </div>
		 </a>
		 <a class="canvas" id="partially-cloudy" href="#" style="display:none">
		  <div class="info"><span style="font-size:24px;">多云</span></div>
		  <div class="sun">
			<div class="beam"> </div>
			<div class="beam"> </div>
			<div class="beam"> </div>
			<div class="beam"> </div>
			<div class="beam"> </div>
			<div class="beam"> </div>
			<div class="beam"> </div>
			<div class="beam"> </div>
		  </div>
		  <div class="cloud"></div>
		 </a>
		 <a class="canvas" id="cloudy" href="#" style="display:none">
		  <div class="info"><span style="font-size:24px;">阴</span></div>
		  <div class="cloud">
			<div class="cloud-copy"></div>
		  </div>
		  </a>
		 <a class="canvas" id="shower" href="#" style="display:none">
		  <div class="info"><span style="font-size:24px;">阵雨</span></div>
		  <div class="sun">
			<div class="beam"> </div>
			<div class="beam"> </div>
			<div class="beam"> </div>
			<div class="beam"> </div>
			<div class="beam"> </div>
			<div class="beam"> </div>
			<div class="beam"> </div>
			<div class="beam"> </div>
		  </div>
		  <div class="cloud">
			<div class="cloud-copy"></div>
			<div class="rain">
			  <div class="drop"></div>
			  <div class="drop"></div>
			  <div class="drop"></div>
			  <div class="drop"></div>
			  <div class="drop"></div>
			  <div class="drop"></div>
			  <div class="drop"></div>
			  <div class="drop"></div>
			  <div class="drop"></div>
			  <div class="drop"></div>
			</div>
		  </div>
		</a>
		<a class="canvas" id="thundershower" href="#" style="display:none">
		  <div class="info"><span style="font-size:24px;">雷阵雨</span></div>
		  <div class="sun">
			<div class="beam"> </div>
			<div class="beam"> </div>
			<div class="beam"> </div>
			<div class="beam"> </div>
			<div class="beam"> </div>
			<div class="beam"> </div>
			<div class="beam"> </div>
			<div class="beam"> </div>
		  </div>
		  <div class="cloud">
			<div class="cloud-copy"></div>
			<div class="rain">
			  <div class="drop"></div>
			  <div class="drop"></div>
			  <div class="drop"></div>
			  <div class="drop"></div>
			  <div class="drop"></div>
			  <div class="drop"></div>
			  <div class="drop"></div>
			  <div class="drop"></div>
			  <div class="drop"></div>
			  <div class="drop"></div>
			  <div class="lightning"></div>
			</div>
		  </div>
		</a>
		<a class="canvas" id="shower_hail" href="#" style="display:none">
		  <div class="info"><span style="font-size:24px;">雷阵雨伴有冰雹</span></div>
		  <div class="sun">
			<div class="beam"> </div>
			<div class="beam"> </div>
			<div class="beam"> </div>
			<div class="beam"> </div>
			<div class="beam"> </div>
			<div class="beam"> </div>
			<div class="beam"> </div>
			<div class="beam"> </div>
		  </div>
		  <div class="cloud">
			<div class="cloud-copy"></div>
			<div class="rain">
			  <div class="drop"></div>
			  <div class="drop"></div>
			  <div class="drop"></div>
			  <div class="drop"></div>
			  <div class="drop"></div>
			  <div class="drop"></div>
			  <div class="drop"></div>
			  <div class="drop"></div>
			  <div class="drop"></div>
			  <div class="drop"></div>
			  <div class="lightning"></div>
			</div>
		  </div>
	   </a>
		<a class="canvas" id="broken-clouds" href="#" style="display:none">
		  <div class="info"><span style="font-size:24px;">碎云</span></div>
		  <div class="clouds">
			<div class="cloud"></div>
			<div class="cloud"></div>
			<div class="cloud"></div>
		  </div>
		 </a>
		 <a class="canvas" id="scattered-clouds" href="#" style="display:none">
		  <div class="info"><span style="font-size:24px;">散云</span></div>
		  <div class="clouds">
			<div class="cloud"></div>
			<div class="cloud"></div>
			<div class="cloud"></div>
		  </div>
		</a>
		 <a class="canvas" id="rain" href="#" style="display:none">
		  <div class="info"><span style="font-size:24px;">小雨</span></div>
		  <!--<div class="sun">
			<div class="beam"> </div>
			<div class="beam"> </div>
			<div class="beam"> </div>
			<div class="beam"> </div>
			<div class="beam"> </div>
			<div class="beam"> </div>
			<div class="beam"> </div>
			<div class="beam"> </div>
		  </div>-->
		  <div class="cloud">
			<div class="cloud-copy"></div>
			<div class="rain">
			  <div class="drop"></div>
			  <div class="drop"></div>
			  <div class="drop"></div>
			  <div class="drop"></div>
			  <div class="drop"></div>
			  <div class="drop"></div>
			  <div class="drop"></div>
			  <div class="drop"></div>
			  <div class="drop"></div>
			  <div class="drop"></div>
			</div>
		  </div>
		</a>
		<a class="canvas" id="rainy" href="#" style="display:none">
		  <div class="info"><span style="font-size:24px;">中雨</span></div>
		  <div class="clouds">
			<div class="cloud">
			  <div class="cloud-copy"></div>
			  <div class="rain">
				<div class="drop"></div>
				<div class="drop"></div>
				<div class="drop"></div>
				<div class="drop"></div>
				<div class="drop"></div>
				<div class="drop"></div>
				<div class="drop"></div>
				<div class="drop"></div>
				<div class="drop"></div>
				<div class="drop"></div>
			  </div>
			</div>
			<div class="cloud">
			  <div class="cloud-copy"></div>
			  <div class="rain">
				<div class="drop"></div>
				<div class="drop"></div>
				<div class="drop"></div>
				<div class="drop"></div>
				<div class="drop"></div>
				<div class="drop"></div>
				<div class="drop"></div>
				<div class="drop"></div>
				<div class="drop"></div>
				<div class="drop"></div>
			  </div>
			</div>
		  </div>
		</a>
		<a class="canvas" id="bigrainy" href="#" style="display:none">
		  <div class="info"><span style="font-size:24px;">大雨</span></div>
		  <div class="floating_dust">
			<img src="icon/day/09.png" />
		  </div>
		</a>		
	  <a class="canvas" id="thunderstorm" href="#" style="display:none">
		  <div class="info"><span style="font-size:24px;">暴雨</span></div>
		  <div class="cloud">
			<div class="cloud-copy"></div>
			<div class="rain">
			  <div class="drop"></div>
			  <div class="drop"></div>
			  <div class="drop"></div>
			  <div class="drop"></div>
			  <div class="drop"></div>
			  <div class="drop"></div>
			  <div class="drop"></div>
			  <div class="drop"></div>
			  <div class="drop"></div>
			  <div class="drop"></div>
			  <div class="lightning"></div>
			</div>
		  </div>
		 </a>
		 <a class="canvas" id="snow" href="#" style="display:none">
		  <div class="info"><span style="font-size:24px;">雪</span></div>
		  <div class="cloud">
			<div class="cloud-copy"></div>
			<div class="snow">
			  <div class="flake">
				<div class="flake-part"></div>
				<div class="flake-part"></div>
				<div class="flake-part"></div>
				<div class="flake-part"></div>
				<div class="flake-part"></div>
				<div class="flake-part"></div>
			  </div>
			  <div class="flake">
				<div class="flake-part"></div>
				<div class="flake-part"></div>
				<div class="flake-part"></div>
				<div class="flake-part"></div>
				<div class="flake-part"></div>
				<div class="flake-part"></div>
			  </div>
			  <div class="flake">
				<div class="flake-part"></div>
				<div class="flake-part"></div>
				<div class="flake-part"></div>
				<div class="flake-part"></div>
				<div class="flake-part"></div>
				<div class="flake-part"></div>
			  </div>
			  <div class="flake">
				<div class="flake-part"></div>
				<div class="flake-part"></div>
				<div class="flake-part"></div>
				<div class="flake-part"></div>
				<div class="flake-part"></div>
				<div class="flake-part"></div>
			  </div>
			  <div class="flake">
				<div class="flake-part"></div>
				<div class="flake-part"></div>
				<div class="flake-part"></div>
				<div class="flake-part"></div>
				<div class="flake-part"></div>
				<div class="flake-part"></div>
			  </div>
			  <div class="flake">
				<div class="flake-part"></div>
				<div class="flake-part"></div>
				<div class="flake-part"></div>
				<div class="flake-part"></div>
				<div class="flake-part"></div>
				<div class="flake-part"></div>
			  </div>
			  <div class="flake">
				<div class="flake-part"></div>
				<div class="flake-part"></div>
				<div class="flake-part"></div>
				<div class="flake-part"></div>
				<div class="flake-part"></div>
				<div class="flake-part"></div>
			  </div>
			  <div class="flake">
				<div class="flake-part"></div>
				<div class="flake-part"></div>
				<div class="flake-part"></div>
				<div class="flake-part"></div>
				<div class="flake-part"></div>
				<div class="flake-part"></div>
			  </div>
			  <div class="flake">
				<div class="flake-part"></div>
				<div class="flake-part"></div>
				<div class="flake-part"></div>
				<div class="flake-part"></div>
				<div class="flake-part"></div>
				<div class="flake-part"></div>
			  </div>
			  <div class="flake">
				<div class="flake-part"></div>
				<div class="flake-part"></div>
				<div class="flake-part"></div>
				<div class="flake-part"></div>
				<div class="flake-part"></div>
				<div class="flake-part"></div>
			  </div>
			</div>
		  </div>
		</a>
		<a class="canvas" id="snow_shower" href="#" style="display:none">
		  <div class="info"><span style="font-size:24px;">阵雪</span></div>
		  <div class="sun">
			<div class="beam"> </div>
			<div class="beam"> </div>
			<div class="beam"> </div>
			<div class="beam"> </div>
			<div class="beam"> </div>
			<div class="beam"> </div>
			<div class="beam"> </div>
			<div class="beam"> </div>
		  </div>
		  <div class="cloud">
			<div class="cloud-copy"></div>
			<div class="snow">
			  <div class="flake">
				<div class="flake-part"></div>
				<div class="flake-part"></div>
				<div class="flake-part"></div>
				<div class="flake-part"></div>
				<div class="flake-part"></div>
				<div class="flake-part"></div>
			  </div>
			  <div class="flake"></div>
			  <div class="flake"></div>
			  <div class="flake">
				<div class="flake-part"></div>
				<div class="flake-part"></div>
				<div class="flake-part"></div>
				<div class="flake-part"></div>
				<div class="flake-part"></div>
				<div class="flake-part"></div>
			  </div>
			  <div class="flake">
				<div class="flake-part"></div>
				<div class="flake-part"></div>
				<div class="flake-part"></div>
				<div class="flake-part"></div>
				<div class="flake-part"></div>
				<div class="flake-part"></div>
			  </div>
			  <div class="flake"></div>
			  <div class="flake"></div>
			  <div class="flake"></div>
			  <div class="flake"></div>
			  <div class="flake"></div>
			</div>
		  </div>
		  </a>
		 <a class="canvas" id="mist" href="#" style="display:none">
		  <div class="info"><span style="font-size:24px;">雾</span></div>
		  <div class="mist">
			<div class="mist-line"></div>
			<div class="mist-line"></div>
			<div class="mist-line"></div>
			<div class="mist-line"></div>
			<div class="mist-line"></div>
		  </div>
		</a>
		<a class="canvas" id="blowing_sand" href="#" style="display:none">
		  <div class="info"><span style="font-size:24px;">扬沙</span></div>
		  <div class="blowing_sand">
			<img src="icon/day/30.png" />
		  </div>
		</a>
		<a class="canvas" id="floating_dust" href="#" style="display:none">
		  <div class="info"><span style="font-size:24px;">浮尘</span></div>
		  <div class="floating_dust">
			<img src="icon/day/29.png" />
		  </div>
		</a>
	   </div>
   </div>
	<div class="container">
		<input id = "ip" name = "ip" type="hidden"/>
		<div style="margin-top: 150px;">
		  <div class="row">
            <div class="col-lg-offset-5 col-lg-2 col-md-offset-3 col-xs-6 col-sm-3">
			      <img style="width: 286px;height: 64px;" src = "img/jdiy.gif"/>
			</div>
          </div>
          <div class="row" >
			<div class="col-lg-offset-3 col-lg-1 col-md-offset-1 col-xs-6 col-sm-1">
			      <button type="button" class="btn btn-primary" id="myButton4" data-complete-text="Loading finished">搜索
                  </button>
			</div>
            <div class="col-xs-6 col-sm-1">
			   <div class="form-group">
				 <input type="serch" class="form-control" style="width: 302px;" id="urlname" onfocus="bc()" onblur="lk()" placeholder="搜索其实很简单">
				 <input type="hidden" id="sval" value="1">
			   </div>
			</div>
         </div>
		   <div class="row" >
		      <div class="col-lg-offset-4 col-lg-2 col-md-offset-2 col-xs-6 col-sm-2">
				 <div>   
				 <select onchange="getChange(this)" style="color:#999; border: 1px solid #ccc; padding: 6px 12px;font-size: 15px;text-align: center;white-space: nowrap;border-radius: 4px;/*box-shadow: 15px 15px 45px #000;*/">
				       <option value="0">搜索分类</option>
					   <option value="1">国内搜索</option>
					   <option value="2">国际搜索</option>
					   <option value="3">谷歌替代</option>
					   <option value="4">隐私保护</option>
                       <option value="5">影视搜索</option>
					   <option value="6">网盘搜索</option>
                       <option value="7">BT搜索</option>
                       <option value="8">搜电子书</option>
                       <option value="9">图搜</option>
					   <option value="10">数据搜索</option>
					   <option value="11">学术搜索</option>
                 </select> 
				 </div>
			</div> 
			 <div class="col-lg-2 col-md-4  col-xs-4">
			       <div>
					   <select id="catlists" onchange="SecondChange(this)" style="color:#999; border: 1px solid #ccc; padding: 6px 12px;font-size: 15px;text-align: center;white-space: nowrap;border-radius: 4px;/*box-shadow: 15px 15px 45px #000;*/">
                          <option value="https://www.ecosia.org/search?q=">分类列表</option>
                          <option value="https://mengso.com/search?q=" title="萌搜">萌搜</option>
						  <option value="https://www.baidu.com/s?wd=" title="百度">百度</option>
						  <option value="https://www.sogou.com/web?query=" title="搜狗">搜狗</option>
						  <option value="https://www.so.com/s?q=" title="好搜">360</option>
						  <option value="https://gj.kuaidi100.com/autonumber/autoComNum?text=" title="查快递">查快递</option>
						  <option value="https://www.coursera.org/learn/java-chengxu-sheji#syllabus" title="课程">课程</option>
						  
                       </select>
                 </div>
			</div>
		  </div>
		</div>
      </div>
	  <div style="position: absolute;bottom: 0px; padding:50px;">
		<a href="http://www.zzhmj.com:90" target="_blank"><img src="./img/edit.png" height= "50px;" width="50px;"/></a>
	  </div>
	<script src="./js/jquery.js"></script>
	<script src="./js/script.js"></script>
    <script>
	
	
		 //Here is configuration
		/*window.animation_config = {
		  generatorDelay : { min: 1, max:20 }, //in ms
		  speed : 1, //1x
		  x_axis_rate : 0.1, // x axis mobility
		  weight : 0.5, //snow flake weight
		  size : 1.5, //snow flake size
		  z_axis_rate : 0.05, //z axis mobility
		  color : {b : 255, a: 0.8}, //b for brightness, a for alpha, by default generates random colors but if you set brightness 255 then you'll see only white color
		  wind : 0 // value's sign determines wind direction.
		};*/
        
		(function() {
		   getBingImg();
		   getLocalWeather();
		   //window.setInterval("getLocalWeather();",900000);
		})();
		
		/*
天气现象表

晴			阵雨				雪

少云		雷阵雨				阵雪

晴间多云    雷阵雨并伴有冰雹	小雪

多云		小雨				中雪

阴			中雨				大雪

有风		大雨				暴雪

平静		暴雨				小雪-中雪

微风		大暴雨				中雪-大雪

和风		特大暴雨			大雪-暴雪

清风		强阵雨				浮尘

强风/劲风	强雷阵雨			扬沙

疾风		极端降雨			沙尘暴

大风		毛毛雨/细雨			强沙尘暴

烈风		雨					龙卷风

风暴		小雨-中雨			雾

狂爆风		中雨-大雨			浓雾

飓风		大雨-暴雨			强浓雾

热带风暴	暴雨-大暴雨			轻雾

霾			大暴雨-特大暴雨		大雾

中度霾		雨雪天气			特强浓雾

重度霾		雨夹雪				热

严重霾		阵雨夹雪			冷
			
			冻雨				未知
		*/
		//获取本地ip
		function getLocalWeather(){
			jQuery.getScript("http://pv.sohu.com/cityjson?ie=utf-8",function(data){
				var cip = returnCitySN["cip"];
				var url = "https://restapi.amap.com/v3/ip?output=json&key=5f7bf839c42ec828e376062bc569657c&ip="+cip;
				$.ajax({
					url: url,
					method: "GET",
					async: false,
					success: function (res) {
						if (res.status > 0) {
							var address = res.province +"·"+res.city;
							var url_ = "https://restapi.amap.com/v3/weather/weatherInfo?key=5f7bf839c42ec828e376062bc569657c&extensions=base&output=JSON&city="+res.adcode;
							$.ajax({
								url: url_,
								method: "GET",
								async: false,
								success: function (res) {
									if (res.status > 0) {
										var lives = res.lives;
										for(var i=0;i<lives.length;i++){
											var live = lives[i];
											var weather = live.weather;
											var weather_text = live.weather+" ~ "+live.temperature+" ℃";
											//weather = "晴";
											var id = "#";
											if(weather=="晴"){ id += "sunny";//00
											}else if(weather=="阵雨"){id += "shower";//03
											}else if(weather=="雪"){id += "snow";$("#snow-flake-app").show();
											//}else if(weather=="少云"){id += "snow";
											}else if(weather=="雷阵雨"){id += "thundershower";//04
											}else if(weather=="阵雪"){id += "snow_shower";//13
											//}else if(weather=="晴间多云"){id += "snow_shower";
											}else if(weather=="雷阵雨并伴有冰雹"){id += "shower_hail";
											//}else if(weather=="小雪"){id += "shower_hail";
											}else if(weather=="多云"){id += "partially-cloudy";
											}else if(weather=="小雨"){id += "rain";
											//}else if(weather=="中雪"){id += "rain";$("#snow-flake-app").show();
											}else if(weather=="阴"){id += "cloudy";
											}else if(weather=="中雨"){id += "rainy";
											//}else if(weather=="大雪"){id += "rainy";$("#snow-flake-app").show();
											//}else if(weather=="有风"){id += "rainy";
											}else if(weather=="大雨"){id += "bigrainy";
											//}else if(weather=="暴雪"){id += "rainy";$("#snow-flake-app").show();
											//}else if(weather=="平静"){id += "rainy";
											}else if(weather=="暴雨"){id += "thunderstorm";
											//}else if(weather=="小雪-中雪"){id += "rainy";
											//}else if(weather=="微风"){id += "rainy";
											//}else if(weather=="大暴雨"){id += "rainy";
											//}else if(weather=="中雪-大雪"){id += "rainy";$("#snow-flake-app").show();
											//}else if(weather=="和风"){id += "rainy";
											//}else if(weather=="特大暴雨"){id += "rainy";
											//}else if(weather=="大雪-暴雪"){id += "rainy";$("#snow-flake-app").show();
											//}else if(weather=="清风"){id += "rainy";
											//}else if(weather=="强阵雨"){id += "mist";
											}else if(weather=="浮尘"){id += "floating_dust";
											//}else if(weather=="强风/劲风"){id += "floating_dust";
											//}else if(weather=="强雷阵雨"){id += "floating_dust";
											}else if(weather=="扬沙"){id += "blowing_sand";
											//}else if(weather=="疾风"){id += "blowing_sand";
											//}else if(weather=="极端降雨"){id += "blowing_sand";
											//}else if(weather=="沙尘暴"){id += "blowing_sand";
											//}else if(weather=="大风"){id += "blowing_sand";
											//}else if(weather=="毛毛雨/细雨"){id += "blowing_sand";
											//}else if(weather=="强沙尘暴"){id += "blowing_sand";
											//}else if(weather=="烈风"){id += "blowing_sand";
											//}else if(weather=="雨"){id += "blowing_sand";
											//}else if(weather=="龙卷风"){id += "blowing_sand";
											//}else if(weather=="风暴"){id += "blowing_sand";
											//}else if(weather=="小雨-中雨"){id += "blowing_sand";
											}else if(weather=="雾"){id += "mist";
											//}else if(weather=="狂爆风"){id += "mist";
											//}else if(weather=="中雨-大雨"){id += "mist";
											//}else if(weather=="浓雾"){id += "mist";
											//}else if(weather=="飓风"){id += "mist";
											//}else if(weather=="大雨-暴雨"){id += "mist";
											//}else if(weather=="强浓雾"){id += "mist";
											//}else if(weather=="热带风暴"){id += "mist";
											//}else if(weather=="暴雨-大暴雨"){id += "mist";
											//}else if(weather=="轻雾"){id += "mist";
											//}else if(weather=="霾"){id += "mist";
											//}else if(weather=="大暴雨-特大暴雨"){id += "mist";
											//}else if(weather=="大雾"){id += "mist";
											//}else if(weather=="中度霾"){id += "mist";
											//}else if(weather=="雨雪天气"){id += "mist";
											//}else if(weather=="特强浓雾"){id += "mist";
											//}else if(weather=="重度霾"){id += "mist";
											//}else if(weather=="雨夹雪"){id += "mist";
											//}else if(weather=="热"){id += "mist";
											//}else if(weather=="严重霾"){id += "mist";
											//}else if(weather=="阵雨夹雪"){id += "mist";
											//}else if(weather=="冷"){id += "mist";
											//}else if(weather=="冻雨"){id += "mist";
											//}else if(weather=="未知"){id += "mist";
											}
											$(id).show();
											$(id).attr("title",address);
											$(id).attr("target","_blank");
											$(id).attr("href","http://yun.rili.cn/wnl/index.html");
											$(id).find('span').text(weather_text);
										}
									}else{
										alert(res.info);		
									}
								},
								error: function (err) {
									alert("请求异常!");
								}
							});
						}else{
							alert(res.info);		
						}
					},
					error: function (err) {
						alert("请求异常!");
					}
				});
				
			});
		}
		
		// 获取必应网图片
		function getBingImg(){
		  var url = 'http://www.zzhmj.com/bing/HPImageArchive.aspx?format=js&idx=0&n=1&mkt=zh-CN';
		  $.ajax({
				url: url,
				method: "GET",
                async: false,
				success: function (res) {
					if (res.images.length > 0) {
						var src = 'https://cn.bing.com' +res.images[0].url;
						$("body").css("background","url("+src+")");			
					}
				},
				error: function (err) {
					alert("请求异常!");
				}
			});
		};
		
		function bc(){                //搜索框取得焦点时触发的事件
            document.getElementById("urlname").style.width='400px';
        };
		
        function lk(){               //搜索框失去焦点时触发的事件
            document.getElementById("urlname").style.width='302px';
        };
		
		function getChange(obj) {
		   var val,urlData;
		   val = obj.options[obj.selectedIndex].value;
		   if(val == 0) val = 1;
		   urlData = [['https://www.baidu.com/s?wd=','https://www.sogou.com/web?query=','https://www.so.com/s?q=','https://zhihu.sogou.com/zhihu?query=','https://weixin.sogou.com/weixin?type=2&query=','https://s.weibo.com/weibo?q='],
					  ['https://www.google.com/search?q=','https://www2.bing.com/search?q=','https://www.ecosia.org/search?q=','https://www.qwant.com/?q=','https://yandex.com/search/?text='],
					  ['https://www.search.com/web?q=','https://busca.uol.com.br/result.html?term=','https://search.mysearch.com/web?q=','https://suche.gmx.net/web/result?q=','https://tinygoo.herokuapp.com/query/?q=','http://googlebridge.com/search?q=','http://126kr.com/search?q='],
					  ['https://duckduckgo.com/?q=','https://www.hotbot.com/web?q='],
					  ['http://ifkdy.com/?q=','http://www.ttmeiju.vip/index.php/search/index.html?keyword=','http://www.acgsou.com/?keyword=', 'http://www.slimego.cn/search.html?q=','http://www.rs05.com/search.php?s=','https://neets.cc/search?key=', 'http://www.dmhy.org/topics/list?keyword='],
					  ['http://www.pansoso.com/zh/','https://www.quzhuanpan.com/source/search.action?q=','http://www.daysou.com/s?q=','http://www.panduoduo.net/s/name/','http://www.xilinjie.com/s?q=','https://www.panc.cc/s/'],
					  ['https://www.cilimao.cc/search?word=','http://pianyuan.net/search?q=','http://www.runbt.in/list/'],
					  ['http://mebook.cc/?s=','https://www.jiumodiary.com?q=','https://bookset.me/search/','https://www.google.com/search?tbm=bks&q=','http://www.zxcs.me/index.php?keyword=','http://www.soduso.com/search/index.aspx?key='],
					  ['https://www.google.com/search?newwindow=1&tbm=isch&source=hp&biw=1366&bih=657&ei=KWhRXLGVKsb0swXmpJCAAg&q=','https://image.baidu.com','https://visualhunt.com/search/instant/?q=','http://588ku.com/','https://www.iconfont.cn/search/index?searchType=icon&q=',
					  'https://pixabay.com/zh/photos/','https://cn.freeimages.com/search/'],
					  ['https://trends.google.com/trends/explore?q=','http://index.baidu.com/v2/main/index.html#/trend/nginx?words=','http://zhishu.sogou.com/index/searchHeat?timePeriodType=MONTH&dataType=SEARCH_ALL&queryType=INPUT&kwdNamesStr=','http://index.1688.com/','http://mi.talkingdata.com/search.html?keyword=',
					  'http://www.cbooo.cn/','http://index.bitauto.com','http://www.cfh.ac.cn/Spdb/spsearch.aspx/'],
					  ['https://scholar.google.com.hk/scholar?hl=zh-CN&q=','http://xueshu.baidu.com/s?wd=','https://cn.bing.com/academic/search?q=','http://www.oalib.com/search?kw=nginx','http://pubmed.cn/search?q=','https://www.aminer.cn/search?t=b&q=','http://find.nlc.cn/search/doSearch?query=','http://scholar.cnki.net/result.aspx?q=',
					  'http://trend.cnki.net/TrendSearch/trendshow.htm?searchword=','https://www.base-search.net/Search/Results?lookfor=','https://www.wdl.org/zh/search/?q=','http://www.letpub.com.cn/index.php?page=journalapp&view=search&searchsort=relevance&searchname=','https://www.sciencedirect.com/search?qs=',
					  'http://en.whu.findplus.cn/?h=search_list&query=','http://search.mit.edu/search?q=','http://en.shl.findplus.cn/?h=search_list&query=','http://www.sciinfo.cn/Result.aspx?c=1&q=','https://www.repository.cam.ac.uk/discover?scope=%2F&query=']
					 ];
		   nameData = [['百度搜索','搜狗搜索','好搜','知乎搜索','微信搜索','微博搜索'],
				 ['谷歌搜索','必应搜索','Ecosia','Qwant','Yandex'],
				['Search','UOL bu..','MySear..','GMX','Tiny Go..','GoogleB..','BirdSo'],
				['Duck..','Hotbot','Startpage'],
				['疯狂影视','天天美剧','ACG搜','史莱姆','人生05','Neet追剧','动漫花园'],
				['盘搜搜','去转盘','天天搜索','盘多多','西林街','胖次'],
				['磁力猫','片源网','RUNBT'],
				['MeBook','鸠摩搜书','BookSet','Google','知轩藏书','SoDu'],
				['谷歌图片','百度图片','Visual...','千库网','iconfont','Pixabay','FreeImg'],
				['谷歌指数','百度指数','搜狗指数','阿里指数','移动观象','中国票房','汽车指数','物种搜索'],
				['谷歌学术','百度学术','必应学术','OALib','PubMed','AMiner','文津搜索','CNKI学术','学术趋势','比勒费尔德','世界数字..','Letpub','Science..','珞珈学术','麻省理工','上图发现','中国学术','剑桥大学']
		   ];
		   completeName = [['百度搜索','搜狗搜索','好搜','知乎搜索','微信搜索','微博搜索'],
				 ['谷歌搜索','必应搜索','Ecsoia 德国一款搜索引擎','Qwant 法国的一款搜索引擎','Yandex 俄罗斯的一款搜索引擎'],
				['Search','UOL busca','MySearch','GMX','Tiny Google','GoogleBridge','BirdSo'],
				['Duckduckgo','Hotbot','Startpage'],
				['疯狂影视','天天美剧','ACG搜','史莱姆','人生05','Neets追剧','动漫花园'],
				['盘搜搜','去转盘','天天搜索','盘多多','西林街','胖次'],
				['磁力猫','片源网','runbt'],
				['我的小书屋','鸠摩搜书','BookSet','Google图书','小说搜索','小说搜索'],
				['谷歌图片','百度图片','Visual Hunt','千库网','iconfont','Pixabay','FreeImages'],
				['谷歌指数','百度指数','搜狗指数','阿里指数','移动观象台','中国票房','汽车指数','物种搜索'],
				['谷歌学术','百度学术','必应学术','OALib','PubMed','AMiner','文津搜索','CNKI学术','学术趋势','比勒费尔德学术','世界数字图书馆','Letpub','ScienceDirect','珞珈学术','麻省理工文献','上图发现','中国学术','剑桥大学知识库']
		   ];
		   //移除内容
		   $("#catlists").empty();
		   for(var i = 0 ; i < urlData[val-1].length; i++) {
			  var html = "<option value='"+urlData[val-1][i]+"' title='"+completeName[val-1][i]+"' >"+nameData[val-1][i]+"</option>";
			   $("#catlists").append(html);
		   }
		};
		
		function SecondChange(obj) {
		   var url,title,inData;
		   url = obj.options[obj.selectedIndex].value;
		   title = obj.options[obj.selectedIndex].title;
		   inData = ['阿里指数','中国票房','汽车指数','物种搜索','百度图片','千库网'];
		   if(in_array(title,inData)) {
			  window.open(url);
		   }
		};

		function in_array(search,array){
			for(var i in array){
				if(array[i]==search){
					return true;
				}
			}
			return false;
		};

		$('#urlname').bind('keypress',function(event){
		   if(event.keyCode == "13")    
		   {
			  keyword = $("#urlname").val();
			  var text = $("#catlists").find("option:selected").attr("title");
			  if(!keyword && "查日历" !== text) {
				  alert('请输入要查询的关键词');
				  $("#urlname").focus();
				  return;
			  }
			  url = $("#catlists").val();
			  
			  if("查快递" === text){
				alert(url+keyword);
			  }else if("查日历" === text){
				window.open(url);
			  }else{
			    window.open(url+keyword);
			  }
			  
			  
		   }
		});
		
		$("#myButton4").click(function(){
		   keyword = $("#urlname").val();
		   var text = $("#catlists").find("option:selected").attr("title");
		   if(!keyword && "查日历" !== text) {
			  alert('请输入要查询的关键词');
			  $("#urlname").focus();
			  return;
		   }
		   url = $("#catlists").val();
		   
		  if("查快递" === text){
			alert(url+keyword);
		  }else{
			window.open(url+keyword);
		  }
		});
	</script>
</body>

</html>